package com.xuetang9.t9.xinhuaxia.beans;

import javax.persistence.*;

@Table(name = "chat")
public class Chat {
    /**
     * 对话iD
     */
    @Column(name = "p_chatid")
    private Integer pChatid;

    /**
     * 对话内容
     */
    @Column(name = "p_content")
    private String pContent;

    /**
     * 获取对话iD
     *
     * @return p_chatid - 对话iD
     */
    public Integer getpChatid() {
        return pChatid;
    }

    /**
     * 设置对话iD
     *
     * @param pChatid 对话iD
     */
    public void setpChatid(Integer pChatid) {
        this.pChatid = pChatid;
    }

    /**
     * 获取对话内容
     *
     * @return p_content - 对话内容
     */
    public String getpContent() {
        return pContent;
    }

    /**
     * 设置对话内容
     *
     * @param pContent 对话内容
     */
    public void setpContent(String pContent) {
        this.pContent = pContent;
    }

    @Override
    public String toString() {
        return "Chat{" +
                "pChatid=" + pChatid +
                ", pContent='" + pContent + '\'' +
                '}';
    }
}